package com.qyc.service;

import com.qyc.dto.AddOrUpdateFenceHouseDTO;
import com.qyc.pojo.FenceHouse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qyc.utils.ResponseResult;

import java.util.List;

/**
* @author qinyc
* @description 针对表【manager_fence_house(栏舍信息表)】的数据库操作Service
* @createDate 2023-06-24 12:31:02
*/
public interface FenceHouseService extends IService<FenceHouse> {

    /**
     * @Author qinyc
     * @Description  分页多条件查询栏舍信息
     * @version: v1.0
     * @Date 12:39 2023/6/24
     **/
    ResponseResult queryPage(String fhName, Integer pageNum, Integer pageSize);

    /**
     * @Author qinyc
     * @Description  根据栏舍编号查询栏舍信息以及栏圈信息
     * @version: v1.0
     * @Date 13:27 2023/6/24
     **/
    ResponseResult selectById(String fhId);

    /**
     * @Author qinyc
     * @Description  新增或修改栏舍
     * @version: v1.0
     * @Date 19:01 2023/6/24
     **/
    ResponseResult saveOrUpdate(AddOrUpdateFenceHouseDTO addOrUpdateFenceHouseDTO);

    /**
     * @Author qinyc
     * @Description  根据id删除栏舍信息
     * @version: v1.0
     * @Date 10:31 2023/6/25
     **/
    ResponseResult deleteById(String hId);

    /**
     * @Author qinyc
     * @Description  批量删除栏舍
     * @version: v1.0
     * @Date 10:48 2023/6/25
     **/
    ResponseResult deleteByIdAll(List<String> hIds);
}
